#pragma  once

class sim;
class PropertiesModel;
class Delegate;

class TimeSettings : public QObject
{
	Q_OBJECT

public:
	TimeSettings(sim *_main);
	~TimeSettings();
	void init_model();
	PropertiesModel* model;
/*
	QString getParameter(const QString &name){		
		pair<QString, QString> data = model->getParameter(name); 
		return data.first + "//" + data.second;
	}
	void setParameter(const QString &name, const QString &data){
		model->setParameter(name, data);
	}*/
private:
	sim *main;
private slots:
	void getModelData(const int &parent_row, const int &row, const QVariant &value);
	void updateProperties();
signals:
	void setModelData(const int &parent_row, const int &row, const QVariant &value);
};
